class Todo(object):
    corrent_id = 0

    @classmethod
    def next_id(cls):
        Todo.corrent_id += 1
        todo_id = Todo.corrent_id
        return todo_id


    def __init__(self, title: str = '', completed=False, id: int = 0):
        self.id =id if id > 0 else Todo.next_id()
        self.title = title
        self.completed = completed


